Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase entropy of repo ID generation for tests #1717

Merged
merged 1 commit into from
Nov 23, 2023
Merged

Conversation

JAORMX
Copy link
Contributor

@JAORMX JAORMX commented Nov 23, 2023

This aims to avoid issues such as:

       repositories_test.go:166:
          	Error Trace:	/home/runner/work/minder/minder/internal/db/repositories_test.go:72
          	            				/home/runner/work/minder/minder/internal/db/repositories_test.go:166
          	Error:      	Received unexpected error:
          	            	pq: duplicate key value violates unique constraint "unique_repo_id"
          	Test:       	TestListRepositoriesByProjectID

This aims to avoid issues such as:

```
       repositories_test.go:166:
          	Error Trace:	/home/runner/work/minder/minder/internal/db/repositories_test.go:72
          	            				/home/runner/work/minder/minder/internal/db/repositories_test.go:166
          	Error:      	Received unexpected error:
          	            	pq: duplicate key value violates unique constraint "unique_repo_id"
          	Test:       	TestListRepositoriesByProjectID
```
@JAORMX JAORMX merged commit 868d3bd into main Nov 23, 2023
13 checks passed
@JAORMX JAORMX deleted the repo-id-entropy branch November 23, 2023 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants